import { createApp } from 'vue'
import App from '@/App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
const app = createApp(App)
//@ts-ignore忽略当前文件ts类型的检测否则有红色提示(打包会失败)
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
app.use(ElementPlus, {
  locale: zhCn,
})
import 'virtual:svg-icons-register'
// 全局组件注册
import SvgUse from './components/SvgUse.vue'
app.component('SvgUse', SvgUse)
// 注册自定义组件:注册整个项目的全局组件
import gloalComponent from '@/components'
app.use(gloalComponent)
import '@/styles/index.scss'

import router from './router'
app.use(router)

import pinia from './store'
app.use(pinia)
// import axios from 'axios'
// axios({
//     url:'/api/user/login',
//     method:"post",
//     data:{
//         username:'admin',
//         password:'111111'
//     }
// })
import './permisstion'
app.mount('#app')
